libxl: check return values of read/write
authorIan Campbell <ian.campbell@citrix.com>
Thu, 2 Jun 2011 16:26:10 +0000 (17:26 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 2 Jun 2011 16:26:10 +0000 (17:26 +0100)
commit7b7866eb2689ba6334d4beb3e1a63afa376bab90
tree3b78edef1bf3b4c11309ca2e26018b21e6d39908
parentd586037ac3afa593aa0acacd219ce5f978467a9e
libxl: check return values of read/write

Some distros enable -D_FORTIFY_SOURCE=2 by default
(https://wiki.ubuntu.com/CompilerFlags) which adds the warn_unused_result
attribute to several functions including read(2) and write(2)

Although we don't really care about error reading or writing the libxl spawn fd
catch them anyway to keep this warning happy.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Tested-by: Olaf Hering <olaf@aepfle.de>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_device.c
tools/libxl/libxl_exec.c